package com.guigui.common.constant;

/**
 * @author ：xin
 * @date ：Created in 2021/10/31 14:31
 */
public class ProductConstant {
    public enum AttrEnum{
        /**
         * 基本属性
         */
        ATTR_TYPE_BASE(1,"基本属性"),

        /**
         * 销售属性
         */
        ATTR_TYPE_SALE(0,"销售属性");
        int code;
        String msg;

        AttrEnum(int code, String msg) {
            this.code = code;
            this.msg = msg;
        }

        public int getCode() {
            return code;
        }

        public String getMsg() {
            return msg;
        }

    }

    public enum PublishStatus{

        /**
         * 新建状态
         */
        PRODUCT_NEW(0,"新建状态"),

        /**
         * 上架
         */
        PRODUCT_UP(1,"上架"),

        /**
         * 下架状态
         */
        PRODUCT_DOWN(2,"下架");
        int code;
        String msg;

        PublishStatus(int code, String msg) {
            this.code = code;
            this.msg = msg;
        }

        public int getCode() {
            return code;
        }

        public String getMsg() {
            return msg;
        }

    }
}
